package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysRole;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysRoleProxy extends AbstractProxyEntity<EaiSysRoleProxy, EaiSysRole> {

    private static final Class<EaiSysRole> entityClass = EaiSysRole.class;

    public static final EaiSysRoleProxy TABLE = createTable().createEmpty();

    public static EaiSysRoleProxy createTable() {
        return new EaiSysRoleProxy();
    }

    public EaiSysRoleProxy() {
    }

    /**
     * {@link EaiSysRole#getRoleId}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> roleId() {
        return getStringTypeColumn("roleId");
    }

    /**
     * {@link EaiSysRole#getRoleName}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> roleName() {
        return getStringTypeColumn("roleName");
    }

    /**
     * {@link EaiSysRole#getCategoryId}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * {@link EaiSysRole#getAppId}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> appId() {
        return getStringTypeColumn("appId");
    }

    /**
     * 描述
     * {@link EaiSysRole#getRoleDesc}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> roleDesc() {
        return getStringTypeColumn("roleDesc");
    }

    /**
     * 创建日期
     * {@link EaiSysRole#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysRoleProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysRole#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysRole#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysRoleProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysRole#getUpdateUserId}
     */
    public SQLStringTypeColumn<EaiSysRoleProxy> updateUserId() {
        return getStringTypeColumn("updateUserId");
    }

    @Override
    public Class<EaiSysRole> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysRoleProxyFetcher FETCHER = new EaiSysRoleProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysRoleProxyFetcher extends AbstractFetcher<EaiSysRoleProxy, EaiSysRole, EaiSysRoleProxyFetcher> {

        public EaiSysRoleProxyFetcher(EaiSysRoleProxy proxy, EaiSysRoleProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysRole#getRoleId}
         */
        public EaiSysRoleProxyFetcher roleId() {
            return add(getProxy().roleId());
        }

        /**
         * {@link EaiSysRole#getRoleName}
         */
        public EaiSysRoleProxyFetcher roleName() {
            return add(getProxy().roleName());
        }

        /**
         * {@link EaiSysRole#getCategoryId}
         */
        public EaiSysRoleProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * {@link EaiSysRole#getAppId}
         */
        public EaiSysRoleProxyFetcher appId() {
            return add(getProxy().appId());
        }

        /**
         * 描述
         * {@link EaiSysRole#getRoleDesc}
         */
        public EaiSysRoleProxyFetcher roleDesc() {
            return add(getProxy().roleDesc());
        }

        /**
         * 创建日期
         * {@link EaiSysRole#getCreateDate}
         */
        public EaiSysRoleProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysRole#getCreateUserId}
         */
        public EaiSysRoleProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysRole#getUpdateDate}
         */
        public EaiSysRoleProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysRole#getUpdateUserId}
         */
        public EaiSysRoleProxyFetcher updateUserId() {
            return add(getProxy().updateUserId());
        }

        @Override
        protected EaiSysRoleProxyFetcher createFetcher(EaiSysRoleProxy cp, AbstractFetcher<EaiSysRoleProxy, EaiSysRole, EaiSysRoleProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysRoleProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
